<?php
/**
 * 走进国策首页
 * 
 * @author phper
 *
 */
class IndexController extends Cola_Controller
{
	public function init(){
		$this->model = $this->model('CommData');
	}
	
    public function indexAction() {
    	$modules = Cola::config('_modules');
    	$this->view->trends = $this->model->getCommData($modules['trends']);//通告
    	$this->view->notice = $this->model->getCommData($modules['notice']);//最新动态
    	$this->view->focus_img = $this->model->getCommData($modules['focus_img']);//焦点图
    	var_dump($this->view->trends);
    	$this->display();
    }
}
?>